﻿using Restaurant.Client.Framework;
using Restaurant.Core;
using System;
using System.Windows;

namespace Restaurant.Client
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    static class AppStart
    {
        [STAThread]
        static void Main(string[] args)
        {
            ////注册

            ////联网

            //更新
            //if (true)
            //{
            //    var p = CommonHelper.MapPath("/Update/Restaurant.Update.exe");

            //    System.Diagnostics.Process.Start(p);
            //    return;
            //}
            //登录


            //初始化
            App app = new App();
            app.InitializeComponent();

            var w = new MainWindow();
            var l = new w_Login();


            //登录界面
            if (l.ShowDialog() == false) return;



            app.Run(w);
        }
    }
}